﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Home : WebBaseNormal
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userID"] == null)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script language=javascript>window.setTimeout(window.location.href = 'Default.aspx' ,5000);</script>");
           // Response.Redirect("Default.aspx");
        }
        Session["where"] = this.ToString();
        //Response.Write(Session["userID"]);

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["userID"] = null;
        Session["userName"] = null;
        Response.Redirect("Default.aspx");
    }
}
